package com.escool.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import com.escool.dao.SedeHasPersonalDAO;

import com.escool.model.TbSedeHasPersonal;
import com.escool.model.VwPersonalSede;

@Service
public class SedeHasPersonalServiceImpl implements SedeHasPersonalService{
@Autowired
SedeHasPersonalDAO catTipoCobroDAO;

@Transactional
public void addTbSedeHasPersonal(TbSedeHasPersonal TbSedeHasPersonal) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.addTbSedeHasPersonal(TbSedeHasPersonal);
}

@Transactional
public void editTbSedeHasPersonal(TbSedeHasPersonal TbSedeHasPersonal) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.editTbSedeHasPersonal(TbSedeHasPersonal);
}

@Transactional
public void delTbSedeHasPersonal(int id) {
	// TODO Auto-generated method stub
	catTipoCobroDAO.delTbSedeHasPersonal(id);
}

@Transactional
public List<TbSedeHasPersonal> listTbSedeHasPersonal() {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.listTbSedeHasPersonal();
}

@Transactional
public TbSedeHasPersonal findTbSedeHasPersonal(int id) {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.findTbSedeHasPersonal(id);
}

@Transactional
public List<VwPersonalSede> listVwPersonalSede() {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.listVwPersonalSede();
}

@Transactional
public List<VwPersonalSede> listVwPersonalSedeByEmp(String codigoEmp) {
	// TODO Auto-generated method stub
	return catTipoCobroDAO.listVwPersonalSedeByEmp(codigoEmp);
}

}
